import Vue from 'vue';
import Ass from './index.vue';
import Vant from 'vant';
import 'vant/lib/index.css';
import common from '../common/common'

//全局引入Vant
Vue.use(Vant);

//是否提示生产模式消息
Vue.config.productionTip = false;

//初始化微信JSSDK
common.startJSSDK(Vue, () => {
  console.log('JSSDK初始化完成');
});

//初始化http请求
common.initHttp(Vue, () => {
  console.log('HTTP初始化完成');
})

common.initCommon(Vue, () => {
  console.log('初始化公共方法完成');
})

new Vue({
  render: h => h(Ass)
}).$mount('#App')